﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Group.EditGroup" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("GP206")%></h1>
							</div>
							<div class="submenuN_button"></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="Center9001Left">
						<div class="ad_site"><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>
					</div>
					<div class="Center9001Right">
						<div class="Center9001Content">
							<div class="group_area">
								<div id="TitleID">
									<strong><%=GetText("GP025")%>*</strong><input type="text" id="txtTitle" name="txtTitle" class="input_answer_l" value="<%=gm.Title %>" />
									<div id="ErrorTitle" style="display:none" class="red10"><%=GetText("ST155",new string[]{"3","110"})%></div>	
								</div>
								<div class="margin10" id="groupTag">
									<strong><%=GetText("GP026")%>*</strong><br />
									<input type="radio" id="GroupType_1" name="GroupType" value="1" <%=gm.GroupType=="1"?"checked=\"checked\"":"" %>  onclick="SelGroupType()" />
									<label for="GroupType_1"><%=GetText("GP101")%></label><br />
									<input type="radio" id="GroupType_2" name="GroupType" value="2" <%=gm.GroupType=="2"?"checked=\"checked\"":"" %> onclick="SelGroupType()" />
									<label for="GroupType_2"><%=GetText("GP102")%></label><br />
									<input type="radio" id="GroupType_3" name="GroupType" value="3" <%=gm.GroupType=="3"?"checked=\"checked\"":"" %> onclick="SelGroupType()" />
									<label for="GroupType_3"><%=GetText("GP103")%></label><br />
								</div>
								<div class="margin10">
									<div id="gtExchange" style="display:none"><strong><%=GetText("GP113")%>*</strong><br /></div>
									<div id="gtOther" style="display:none"><strong><%=GetText("GP114")%>*</strong><br /></div>
									<div id="gtStudy"><strong><%=GetText("GP104")%>:*</strong></div>
									<select id="selLang1" name="learLang" class="common250">
										<option value=""><%=GetText("C0027")%></option>
										<%=GetLanguageSelect(gm.Language1)%>
									 </select>
									 <div id="Errorlearn" style="display:none" class="red10"><%=GetText("GP301")%><br /></div>
									 <div id="gtStudy2"><br /><strong><%=GetText("GP105")%>:*</strong></div>
									 <select id="selLang2" name="baseLang" class="common250">
										<option value=""><%=GetText("C0027")%></option>
										<%=GetLanguageSelect(gm.Language2)%>
									</select>
									 <div id="ErrorBase" style="display:none" class="red10"><%=GetText("GP302")%></div>
								</div>
								<div class="margin10">
									<strong><%=GetText("RS050")%>*</strong><br />									
									<input type="hidden" id="txtDesc1" name="txtDesc1" value="<%=HttpUtility.HtmlAttributeEncode(gm.Desc)%>" />
				<input type="hidden" id="txtDesc1___Config" value="ImageBrowserURL=editor/filemanager/browser/default/browser.html?Type%3DImage%26Connector%3Dconnectors/aspx/connector.aspx" />
				<iframe id="txtDesc1___Frame" src="/FCKeditor/editor/fckeditor.html?InstanceName=txtDesc1&amp;Toolbar=italkiSimple"
					width="625px" height="200px" frameborder="no" scrolling="no"></iframe>
								</div>
								<div id="ErrorDesc" style="display:none" class="red10"><%=GetText("ST155",new string[]{"3","10000"})%></div>	
								<div class="margin10">
									<strong><%=GetText("C0107")%>:</strong> <span class="grey12">(<%=GetText("C0043")%>)</span><br />
									<table id="tbTag">
										<tr>
											<td><input type="checkbox" name="Tags" value="Advance" <%=TagCheck("Advance")?"checked=\"checked\"":"" %>/><label for="Checkbox1"><%=GetText("WK600")%></label></td>
											<td><input type="checkbox" name="Tags" value="Beginner" <%=TagCheck("Beginner")?"checked=\"checked\"":"" %>/><label for="Checkbox2"><%=GetText("WK601")%></label></td>
											<td><input type="checkbox" name="Tags" value="Conversation" <%=TagCheck("Conversation")?"checked=\"checked\"":"" %>/><label for="Checkbox3"><%=GetText("WK602")%></label></td>
											<td><input type="checkbox" name="Tags" value="Dictionary" <%=TagCheck("Dictionary")?"checked=\"checked\"":"" %>/><label for="Checkbox4"><%=GetText("WK603")%></label></td>
											<td><input type="checkbox" name="Tags" value="Exercises" <%=TagCheck("Exercises")?"checked=\"checked\"":"" %>/><label for="Checkbox5"><%=GetText("WK604")%></label></td>
										</tr>
										<tr>
											<td><input type="checkbox" name="Tags" value="Grammar" <%=TagCheck("Grammar")?"checked=\"checked\"":"" %>/><label for="Checkbox6"><%=GetText("WK605")%></label></td>									
											<td><input type="checkbox" name="Tags" value="Intermediate" <%=TagCheck("Intermediate")?"checked=\"checked\"":"" %>/><label for="Checkbox7"><%=GetText("WK606")%></label></td>
											<td><input type="checkbox" name="Tags" value="Lesson" <%=TagCheck("Lesson")?"checked=\"checked\"":"" %>/><label for="Checkbox8"><%=GetText("WK607")%></label></td>
											<td><input type="checkbox" name="Tags" value="Listening" <%=TagCheck("Listening")?"checked=\"checked\"":"" %>/><label for="Checkbox9"><%=GetText("WK608")%></label></td>
											<td><input type="checkbox" name="Tags" value="Pronunciation" <%=TagCheck("Pronunciation")?"checked=\"checked\"":"" %>/><label for="Checkbox10"><%=GetText("WK609")%></label></td>									
										</tr>
										<tr>
											<td><input type="checkbox" name="Tags" value="Reading" <%=TagCheck("Reading")?"checked=\"checked\"":"" %>/><label for="Checkbox11"><%=GetText("WK610")%></label></td>
											<td><input type="checkbox" name="Tags" value="Speaking" <%=TagCheck("Speaking")?"checked=\"checked\"":"" %>/><label for="Checkbox12"><%=GetText("WK611")%></label></td>
											<td><input type="checkbox" name="Tags" value="Tones" <%=TagCheck("Tones")?"checked=\"checked\"":"" %>/><label for="Checkbox13"><%=GetText("WK612")%></label></td>
											<td><input type="checkbox" name="Tags" value="Vocabulary" <%=TagCheck("Vocabulary")?"checked=\"checked\"":"" %>/><label for="Checkbox14"><%=GetText("WK613")%></label></td>
											<td><input type="checkbox" name="Tags" value="Writing" <%=TagCheck("Writing")?"checked=\"checked\"":"" %>/><label for="Checkbox14"><%=GetText("WK614")%></label></td>
										</tr>								
									</table>
									<div class="margin10"><input type="text" id="TagsText" name="Tags" class="common100D" value="<%=Tags()%>" /><br /><span class="grey12"><%=GetText("AS044")%></span></div>
									<div id="ErrorTags" class="red10" style="display:none"><%=GetText("AS172")%></div>
								</div> 
								<div class="margin10">
									<strong><%=GetText("GP106")%>*</strong><br />
									<input type="radio" id="JoinOptions_1" name="JoinOptions" value="1" <%=gm.JoinOptions=="1"?"checked=\"checked\"":"" %> />
									<label for="JoinOptions_1"><%=GetText("GP107")%></label><br />
									<input type="radio" id="JoinOptions_2" name="JoinOptions" value="2" <%=gm.JoinOptions=="2"?"checked=\"checked\"":"" %> />
									<label for="JoinOptions_2"><%=GetText("GP108")%></label><br />									
								</div>								
								<div class="margin10">
									<strong><%=GetText("GP112")%></strong> <span class="grey12">(<%=GetText("C0043")%>)</span>
									<p>
										<div class="floatl"><%=gm.ImgUrlPath != "" ? "<img src=\"/UploadImages/Groups/" + gm.GroupID + "_1.jpg\" algin='absmiddle' />" : "<img src=\"/Images/No_pic100.gif\" algin='absmiddle' />"%></div>
										<div class="floatl" style="margin:30px 0px 0px 20px;"><input type="file" id="fileDocs" name="fileDocs" size="35" class="common300"/><br /><span class="grey10"><%=GetText("GP121")%></span><div id="ErrorImage" class="red10" style="display:none"><%=GetText("GP121")%></div></div>
										<div class="clear"></div>
									</p>
								</div>
								<div><input id="btnSave" type="button" class="button" value="<%=GetText("GP219")%>" onclick="SaveGroup()"/>&nbsp;&nbsp;<input name="" type="button" value="<%=GetText("C0056")%>" class="buttong" onclick="history.back()" /></div>
							</div>
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script>
SelGroupType();
var groupID="<%=gm.GroupID %>";
var gid="<%=gid %>";
</script>